public class model {
    public static void main6(String[] args) {
       /* System.out.println(10%3);
        System.out.println(-10%3);
        System.out.println(10%-3);
        System.out.println(-10%-3);
        System.out.println(11.5%2);
*/

        int a = 10;
        int c = 0;
        System.out.println(a/c);

    }


    public static void main5(String[] args) {
        System.out.println(7/3);//2
        System.out.println(-7/3);
        System.out.println(7/-3);
        System.out.println(-7/-3);
    }


    public static void main4(String[] args) {
        int a = 10;
        String str = String.valueOf(a);//ctr+鼠标的左键
        System.out.println(str);
        String str2 = a+"";//当字符串和其他类型进行相加的时候，结果就是字符串
        System.out.println(str2);
        System.out.println("==========");
        int c = 10;
        int d = 20;
        //System.out.println("c = "+c +", d = "+d);
        System.out.println(c+d +" hello");//30 hello
        System.out.println("hello"+c+d);//hello1020
        System.out.println("hello"+(c+d));//hello30

        System.out.println("==========");

        String str3 = "12345";
        int ret = Integer.parseInt(str3);
        System.out.println(ret);
    }






    public static void main3(String[] args) {
        String str1 = "hello";
        String str2 = "bitter";
        System.out.println(str1+str2);//拼接
    }

    public static void main2(String[] args) {
        byte a = 10;
        byte b = 20;

        int c = a+b;

    }

    public static void main1(String[] args) {
        int a = 10;
        long b = 20;

        int c = (int)(a+b);
        long c2 = a+b;

    }
    public static void func1(String[] args) {
        int a = 10;
        long b = 20L;
        a = (int)b;
        //b = a;
        System.out.println();
        float f = 12.5f;
        double d = 89.9;
        f = (float) d;
        System.out.println("===");
        byte g = (byte)128;//[-128 , 127]
        System.out.println(g);
        System.out.println("=====");
        /*boolean flg = true;
        int p = 10;
        flg = (boolean)p;*/
    }
}